package com.wg.msshopsp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("review")
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "评价表")
public class Review implements Serializable {
    @Schema(description = "评价编号")
    private Integer id;

    @Schema(description = "订单编号")
    private Integer orderItemId;

    @Schema(description = "用户编号")
    private Integer userId;

    @Schema(description = "评价的商品编号")
    private Integer productId;

    @Schema(description = "评分")
    private Double score;

    @Schema(description = "评价内容")
    private String content;

    @Schema(description = "评价图片")
    private String img;

    @Schema(description = "评价时间")
    private String createTime;
}
